import nose

def test_add():
    assert 2 + 2 == 3

def test_add2():
    nose.tools.assert_equals(2 + 2, 3)


@mock.patch('class.method', lambda x: True)
def test_outer_w_mock():
    outer = worker.Outer()
    nose.tools.assert_equal(outer.outer_work(), True)

def test_outer_w_mox():
    moxer = mox.Mox()
    moxer.StubOutWithMock(worker.Inner, 'inner_work')

    worker.Inner.inner_work().AndReturn(True)

    moxer.ReplayAll()
    outer = worker.Outer()
    nose.tools.assert_equal(outer.outer_work(), True)
    moxer.VerifyAll()

    moxer.UnsetStubs()

class GateTests
    def setUp(self):
        self.mox = mox.Mox()

    def tearDown(self):
        self.mox.UnsetStubs()

    def test_case_1(self):
        assert 1 == 1

